package com.ynny.exception.demo01;


public class ExceptionTest02 {

    public static void main(String[] args) {
        //都是运行时异常
        //非受检异常 unchecked
        try {
            String[] strings = new String[2];
            System.out.println(strings[3]);
        }catch (ArrayIndexOutOfBoundsException e){
            System.out.println("不能获取超过数据长度的数据~");
        }

    }
}
